<%--
    Document   : exam
    Created on : Jan 14, 2010, 6:23:14 PM
    Author     : Jalbs
--%>

<code>
        <script type="text/javascript" language="javascript" src="../js/jquery-1.3.2.js"></script>               
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {

                        $("#acept").click(function(){
                            var fileUrl=$("#fileUrl").val();
                             $.post("addExams.do",{fileUrl:fileUrl}, "html");
                        });
            } );
</script>    
</code>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <logic:present name="examForm">
            <logic:equal property="action" name="examForm" value="m">
                <h2 align="center">Examenes agregados</h2>
            </logic:equal>
            <logic:notEqual property="action" name="examForm" value="m">
                <h2 align="center">Seleccione un documento</h2>
            </logic:notEqual>
        </logic:present>
                <form id="form1" name="form1" enctype="multipart/form-data" >
                <center><input id="fileUrl" name="fileUrl" type="file" size="50" /></center>
                <center><html:link href="#" styleId="acept">Aceptar</html:link></center>
                </form>

    </body>
</html>
